<template>
	<el-main>
		<el-card shadow="never">
			<el-upload
			  class="upload-demo"
			  drag
			  action="http://yiliwenclothes.top/adminapi/csp/auto/upfile"
			  :headers="headers"
			  multiple>
			  <i class="el-icon-upload"></i>
			  <div class="el-upload__text">将文件拖到此处，或<em>点击上传</em></div>
			  <div class="el-upload__tip" ></div>
			</el-upload>
		</el-card>
	</el-main>
</template>

<script>

	export default {
		name: 'upload',
		data() {
			return {
				headers: {},
				fileData: null,
			};	
		},
		mounted() {
			var token = this.$TOOL.data.get('TOKEN')
			this.headers = {"APPTOKEN": token}
		},
		methods: {
		}
	}
</script>